package com.rc.pojo.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.rc.common.model.BaseConEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 收藏表 实体类。
 *
 * @author 27806
 * @since 2024-06-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "collect", schema = "rc")
public class Collect implements BaseConEntity, Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 封面
     */
    private String cover;

    /**
     * 名字下方提示
     */
    private String tips;

    /**
     * 简介
     */
    private String description;

    /**
     * 对应表id
     */
    private Long itemId;

    /**
     * 收藏类型
     */
    private Integer type;

    /**
     * 顾客id
     */
    private Long conId;

    /**
     * 收藏时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

}
